from math import pi


class Pointer(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y


class Circle(object):
    def __init__(self, cp, radius):
        self.cp = cp
        self.radius = radius

    def area(self):
        return pi * self.radius * self.radius

    def circumference(self):
        return 2 * pi * self.radius

    def is_inside(self, p):
        l_square = (self.cp.x - p.x) ** 2 + (self.cp.y - p.y) ** 2
        r_square = self.radius ** 2
        if l_square > r_square:
            print('outside')
        elif l_square == r_square:
            print('on')
        else:
            print('in')


cp = Pointer(0, 0)
circle = Circle(cp, 3)
print(circle.area())
print(circle.circumference())
p1 = Pointer(3, 3)
p2 = Pointer(0, 3)
p3 = Pointer(1, 1)
circle.is_inside(p1)
circle.is_inside(p2)
circle.is_inside(p3)
